package learn_concurrent._9;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class T1 {
	static final Logger logger = LoggerFactory.getLogger(T1.class);

	volatile static boolean run = true;

	public static void main(String[] args) throws InterruptedException {
		new Thread(() -> {
			while (run) {

			}
		}, "t1").start();

		Thread.sleep(1000);
		logger.info("stop t1");
		run = false;
	}

}
